package com.hk.aefz.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.beans.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 文章表
 * </p>
 *
 * @author 阿尔法哲
 * @since 2020-07-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Essay对象", description="文章表")
public class Essay implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "博客id")
    @TableId(value = "eid", type = IdType.AUTO)
    private Integer eid;

    @ApiModelProperty(value = "标题")
    private String etitle;

    @ApiModelProperty(value = "内容")
    private String eessay;

    @ApiModelProperty(value = "图片")
    private String eimages;

    @ApiModelProperty(value = "0原创1转载")
    private Integer estate;

    @ApiModelProperty(value = "状态：0:公开 1:私密")
    private Integer estatus;

    @ApiModelProperty(value = "阅读量统计")
    private Integer eReadStatis;

    @ApiModelProperty(value = "pl量统计")
    private transient Integer eComment;

    @ApiModelProperty(value = "单独博客收藏量统计")
    private transient Integer eCollect;

    @ApiModelProperty(value = "点赞量统计")
    private transient Integer ePraiseStati;

    @ApiModelProperty(value = "标签集合")
    private transient List<Label> lables;

    @ApiModelProperty(value = "分类")
    private transient Special special ;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @ApiModelProperty(value = "逻辑删除")
    private int dedid;

    @ApiModelProperty(value = "外键，关联账户")
    private Integer aid;

    @ApiModelProperty(value = "数据库不存在字段，页面回显 昵称")
    @TableField(exist = false)
    private String uname;


}
